import request from '@/utils/request';

// 查询mybatis在线接口列表
export const listMb = (query: any) => {
  return request({
    url: '/online/mb/list',
    method: 'get',
    params: query
  });
}

// 查询mybatis在线接口详细
export const getMb = (mbId: any) => {
  return request({
    url: `/online/mb/${mbId}`,
    method: 'get'
  });
}

// 新增mybatis在线接口
export const addMb = (data: any) => {
  return request({
    url: '/online/mb',
    method: 'post',
    data: data
  });
}

// 修改mybatis在线接口
export const updateMb = (data: any) => {
  return request({
    url: '/online/mb',
    method: 'put',
    data: data
  });
}

// 删除mybatis在线接口
export const delMb = (mbId: any) => {
  return request({
    url: `/online/mb/${mbId}`,
    method: 'delete'
  });
}
